package cn.sunshine.ymcc.fegin;

import cn.sunshine.ymcc.CourseDoc;
import cn.sunshine.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-search",fallbackFactory = FallbackFactorySearchFeign.class )
public interface SearchFeign {
    @PostMapping("/course/save")
    JSONResult saveCourse(@RequestBody CourseDoc doc);

    @PostMapping("/course/{id}")
    JSONResult delete(@PathVariable("id") Long id);
}
